package string;

import java.util.Arrays;

public class SpitDemo {
    public static void main(String[] args) {
        String line="156gg746mm468aa";
        String[]data=line.split("[0-9]+");
        System.out.println(Arrays.toString(data));
        //for (int i=0;i<data.length;i++){
        //  System.out.println(data[i]);
        line="465.54..21...";
        data=line.split("\\.");
        System.out.println(Arrays.toString(data));
        System.out.println(data.length);

        }
    }

